package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Component
public class Sale {
    private Integer sale_id;
    private String sale_name;
    private String sale_phone;
    private LocalDateTime createtime;
    private LocalDateTime updatetime;
    private BigDecimal latitude;
    private BigDecimal longitude;

    private City city;

    public Sale() {
    }

    public Sale(Integer sale_id, String sale_name, String sale_phone, LocalDateTime createtime, LocalDateTime updatetime, BigDecimal latitude, BigDecimal longitude, City city) {
        this.sale_id = sale_id;
        this.sale_name = sale_name;
        this.sale_phone = sale_phone;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.latitude = latitude;
        this.longitude = longitude;
        this.city = city;
    }

    public Integer getSale_id() {
        return sale_id;
    }

    public void setSale_id(Integer sale_id) {
        this.sale_id = sale_id;
    }

    public String getSale_name() {
        return sale_name;
    }

    public void setSale_name(String sale_name) {
        this.sale_name = sale_name;
    }

    public String getSale_phone() {
        return sale_phone;
    }

    public void setSale_phone(String sale_phone) {
        this.sale_phone = sale_phone;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Sale{" +
                "sale_id=" + sale_id +
                ", sale_name='" + sale_name + '\'' +
                ", sale_phone='" + sale_phone + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", city=" + city +
                '}';
    }
}
